<?php

use think\Route;

Route::get('api/:v/banner/:id','api/:v.Banner/getBanner');

Route::get('api/:v/theme/:id','api/:v.Theme/getOne');
Route::get('api/:v/theme','api/:v.Theme/getSimpleList');

Route::get('api/:v/product/recent','api/:v.Product/getRecent');
Route::get('api/:v/product/in_category/:id','api/:v.Product/getAllInCategory');
Route::get('api/:v/product/:id','api/:v.Product/getDetail',[],['id'=>'\d+']);


Route::get('api/:v/category/all','api/:v.Category/getAll');

Route::post('api/:v/token/user','api/:v.Token/get');

Route::post('api/:v/address/cu','api/:v.Address/createOrUpdate');

Route::post('api/:v/order/place','api/:v.Order/place');
Route::get('api/:v/order/list/:page','api/:v.Order/getSummaryByUser');
Route::get('api/:v/order/:id','api/:v.Order/getDetail',[],['id'=>'\d+']);

Route::post('api/:v/pay/pre_order','api/:v.Pay/getPreOrder');
Route::post('api/:v/pay/notify','api/:v.Pay/receiveNotify');

Route::get('test','api/test/index');
Route::get('test/tk','api/test/tokenInfo');